package com.buyingtickets.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author Hexz
 * @date 2021/6/23 23:09
 */
public class TrainNumber {
    private int trainNumberId;//车次ID
    private Train train;//列车对象
    private String departureDate;//出发日期：年月日
    private String departureTime;//出发时间：时分秒
    //以下数据与数据库不匹配
    private List<Carriage> carriageList;//车厢集合
    private int startId;//起始站ID
    private int destinationId;//终点站ID
    private String startTime;//起始站出发时间
    private String destinationTime;//终点站到达时间
    private int startOrder;//起始站序号
    private int destinationOrder;//终点站序号
    private List<Type> seatType;//座位类型
    private char scol;//座位（ABCDE)
    private String middleName;//中间站名称
    private int seatId;//座位ID
    private int price;//订单金额
    private String yesNo;//有无座位
    private int userId;//订单创建者ID
    private int orderId;//订单号
    private int passengerId;//乘客ID

    @Override
    public String toString() {
        return "TrainNumber{" +
                "trainNumberId=" + trainNumberId +
                ", train=" + train +
                ", departureDate='" + departureDate + '\'' +
                ", departureTime='" + departureTime + '\'' +
                ", carriageList=" + carriageList +
                ", startId=" + startId +
                ", destinationId=" + destinationId +
                ", startTime='" + startTime + '\'' +
                ", destinationTime='" + destinationTime + '\'' +
                ", startOrder=" + startOrder +
                ", destinationOrder=" + destinationOrder +
                ", seatType=" + seatType +
                ", scol=" + scol +
                ", middleName='" + middleName + '\'' +
                ", seatId=" + seatId +
                ", price=" + price +
                ", yesNo='" + yesNo + '\'' +
                ", userId=" + userId +
                ", orderId=" + orderId +
                ", passengerId=" + passengerId +
                '}';
    }

    public int getPassengerId() {
        return passengerId;
    }

    public void setPassengerId(int passengerId) {
        this.passengerId = passengerId;
    }

    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getYesNo() {
        return yesNo;
    }

    public void setYesNo(String yesNo) {
        this.yesNo = yesNo;
    }

    public String getDepartureDate() {
        return departureDate;
    }

    public void setDepartureDate(String departureDate) {
        this.departureDate = departureDate;
    }

    public String getDepartureTime() {
        return departureTime;
    }

    public void setDepartureTime(String departureTime) {
        this.departureTime = departureTime;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }


    public int getSeatId() {
        return seatId;
    }

    public void setSeatId(int seatId) {
        this.seatId = seatId;
    }

    public String getMiddleName() {
        return middleName;
    }

    public void setMiddleName(String middleName) {
        this.middleName = middleName;
    }


    public char getScol() {
        return scol;
    }

    public void setScol(char scol) {
        this.scol = scol;
    }

    public int getStartId() {
        return startId;
    }

    public void setStartId(int startId) {
        this.startId = startId;
    }

    public int getDestinationId() {
        return destinationId;
    }

    public void setDestinationId(int destinationId) {
        this.destinationId = destinationId;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getDestinationTime() {
        return destinationTime;
    }

    public void setDestinationTime(String destinationTime) {
        this.destinationTime = destinationTime;
    }

    public int getStartOrder() {
        return startOrder;
    }

    public void setStartOrder(int startOrder) {
        this.startOrder = startOrder;
    }

    public int getDestinationOrder() {
        return destinationOrder;
    }

    public void setDestinationOrder(int destinationOrder) {
        this.destinationOrder = destinationOrder;
    }

    public List<Type> getSeatType() {
        return seatType;
    }

    public void setSeatType(List<Type> seatType) {
        this.seatType = seatType;
    }

    public List<Carriage> getCarriageList() {
        return carriageList;
    }

    public void setCarriageList(List<Carriage> carriageList) {
        this.carriageList = carriageList;
    }


    public int getTrainNumberId() {
        return trainNumberId;
    }

    public void setTrainNumberId(int trainNumberId) {
        this.trainNumberId = trainNumberId;
    }

    public Train getTrain() {
        return train;
    }

    public void setTrain(Train train) {
        this.train = train;
    }


}
